package com.crm.customers.model;

import java.util.List;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

import com.crm.base.model.BaseModel;

/**
 * 合同修改记录model
 * id id
 * contractid long 合同id
 * contentid 内容id
 * appstate int 审批状态
 * type int 类别(合同 收款 付款)
 * content String 修改内容
 * isdel int 是否删除
 * createdate 创建日期
 * createuser 创建人
 * updatedate 修改日期
 * updateuser 修改人
 * */
public class ContractUpdateHistory extends BaseModel {

	private static final long serialVersionUID = 1803950230532587680L;

	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
	
	private Long contractid; //合同id 在修改合同的时候,记录的是合同id

	private Long contentid; //内容id 在修改收付款时,记录的是moneylog的id
	
	private int appstate; //审批状态
	
	private Integer type; //修改的类别(合同 收款 付款)
	
	private String content; //修改的内容(json对象数据)
	
	private Integer isdel; //是否删除(0未1已)
	
	private Contract contractInfo; //合同详情
	
	private List<ApproveItemUser> approveUser; //审批人列表
 
	/**
	 * 合同id
	 * */
	public Long getContractid() {
		return contractid;
	}

	/**
	 * 合同id
	 * */
	public void setContractid(Long contractid) {
		this.contractid = contractid;
	}

	/**
	 * 内容id
	 * */
	public Long getContentid() {
		return contentid;
	}

	/**
	 * 内容id
	 * */
	public void setContentid(Long contentid) {
		this.contentid = contentid;
	}
	
	
	public int getAppstate() {
		return appstate;
	}

	/**
	 * 0待审批 1审批中 2通过 3驳回 4完成
	 * */
	public void setAppstate(int appstate) {
		this.appstate = appstate;
	}

	public Integer getType() {
		return type;
	}

	/**
	 * 1合同 2收款 3付款
	 * */
	public void setType(Integer type) {
		this.type = type;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getIsdel() {
		return isdel;
	}

	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}

	public Contract getContractInfo() {
		return contractInfo;
	}

	public void setContractInfo(Contract contractInfo) {
		this.contractInfo = contractInfo;
	}

	public List<ApproveItemUser> getApproveUser() {
		return approveUser;
	}

	public void setApproveUser(List<ApproveItemUser> approveUser) {
		this.approveUser = approveUser;
	}
	
}
